#include <math.h>
#include <Servo.h>
#include <Wire.h>

Servo myservo, mysteer;  //motor,kormány
int frontDist = 2;      //érzékelők
int leftDist = 1;
int rightDist = 3;

void setup() 
{ 
  myservo.attach(9);
  myservo.write(93);
  
  mysteer.attach(8);
  mysteer.write(90);
  
  Serial.begin(115200); // usb monitor
}

void loop() 
{
  Serial.print(analogRead(leftDist));
  Serial.print(" ");
  Serial.print(analogRead(frontDist));
  Serial.print(" ");
  Serial.println(analogRead(rightDist));
  delay(1000);
}
